import React from 'react'
import { useParams } from 'react-router-dom'

export default function Description() {
    let {id,title} = useParams() // 获取路径中的params参数
    return (
        <div>
            <h3>description 组件</h3>
            <p>id: {id}</p>
            <p>title:{title}</p>
        </div>
    )
}
